package com.gome.boot.config.elasticsearch.search;

import java.io.Serializable;
import java.util.List;

/**
 * ES索引数据列表查询结果对象.
 *
 * @author baoxiufeng
 */
public class ListQueryResult<T> implements Serializable {
    /**
     * 分页结果对象
     */
    private Pager pager;
    /**
     * 对象信息列表
     */
    public List<T> entities;

    /**
     * 默认构造方法.
     */
    public ListQueryResult() {
    }

    /**
     * 构造方法.
     *
     * @param pager 分页结果对象
     * @param entities 对象信息列表
     */
    public ListQueryResult(Pager pager, List<T> entities) {
        this.pager = pager;
        this.entities = entities;
    }

    public Pager getPager() {
        return pager;
    }

    public void setPager(Pager pager) {
        this.pager = pager;
    }

    public List<T> getEntities() {
        return entities;
    }

    public void setEntities(List<T> entities) {
        this.entities = entities;
    }
}
